package com.tongji.housediy.events.commonEvent
{
	import flash.events.Event;
	
	import mx.core.UIComponent;
	
	/**
	 * 
	 * @author chenchao
	 * 
	 */
	public class ShowHideTitleWindowEvent extends Event
	{
		public static const SHOW_TITLE_WINDOW:String = "showTitleWindow";
		public static const HIDE_TITLE_WINDOW:String = "hideTitleWindow";
		public static const UPDATE_LINE_POSITION:String = "updateLinePosition";
		public static const UPDATE_TITLE_WINDOW_POSITION:String = "updateTitleWindowPosition";
		
		public var firstX:Number;
		public var firstY:Number;
		public var secondX:Number;
		public var secondY:Number;
		public var windowX:Number;
		public var windowY:Number;
		public var host:UIComponent;
		
		/**
		 * 控制弹出框显示、隐藏的事件
		 * @param type
		 * @param firstX
		 * @param firstY
		 * @param secondX
		 * @param secondY
		 * @param windowX
		 * @param windowY
		 * @param host
		 * 
		 */		
		public function ShowHideTitleWindowEvent(type:String,
												 firstX:Number = 0, firstY:Number = 0,
												 secondX:Number = 0, secondY:Number = 0,
												 windowX:Number = 0, windowY:Number = 0,
												 host:UIComponent = null)
		{
			super(type, true);
			this.firstX = firstX;
			this.firstY = firstY;
			this.secondX = secondX;
			this.secondY = secondY;
			this.windowX = windowX;
			this.windowY = windowY;
			this.host = host;
		}
		
		override public function clone():Event
		{
			return new ShowHideTitleWindowEvent(type, firstX, firstY, secondX, secondY, windowX, windowY, host);
		}
	}
}